import wx
from panel.test_panel import MyPanel
from panel.text_panel import TXPanel


class FXNoteBook(wx.Notebook):
    def __init__(self, parent, id):
        wx.Notebook.__init__(self, parent, id)
        self.panels = []

        # Tab页：记事本
        self.text_panel = TXPanel(self, -1)
        self.panels.append(self.text_panel)
        self.AddPage(self.text_panel, "记事本")

        # Tab页：计算器
        self.test_panel = MyPanel(self, -1)
        self.panels.append(self.test_panel)
        self.AddPage(self.test_panel, "计算器")
